package com.zerocarbon.framework.core.config;

import com.zerocarbon.framework.core.jwt.TokenService;
import com.zerocarbon.framework.core.properties.JwtProperties;
import com.zerocarbon.framework.core.properties.TraceProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * 认证服务端配置
 * @author wyf  2020年6月6日
 */
@EnableConfigurationProperties(value = {JwtProperties.class, TraceProperties.class})
public class TokenAutoConfiguration {

    @Bean
    public TokenService getTokenUtil(JwtProperties jwtProperties) {
    	//log.info("---------------------------14 TokenService init----------------------------------------");
        return new TokenService(jwtProperties);
    }
}
